package inline;

import android.text.TextUtils;

import org.json.JSONArray;
import org.json.JSONException;

import java.util.ArrayList;
import java.util.List;

public class JSONDemo {
    public static List a(String arg4) {
        ArrayList v1 = new ArrayList();
        if (!TextUtils.isEmpty(((CharSequence) arg4))) {
            try {
                JSONArray v2 = new JSONArray(arg4);
                int v0_1;
                for (v0_1 = 0; v0_1 < v2.length(); ++v0_1) {
                    ((List) v1).add(v2.getString(v0_1));
                }
            } catch (JSONException v0) {
            }
        }

        return ((List) v1);
    }
}
